package com.greatwall.hip.cms.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.greatwall.hip.cms.entity.LyDiseaseTag;
import com.greatwall.hip.cms.entity.LyPacsReport;
import com.greatwall.hip.cms.model.DiseaseReq;
import org.apache.ibatis.annotations.Param;

/**
 * (LyDiseaseTag)表数据库访问层
 *
 * @author makejava
 * @since 2021-07-06 19:42:48
 */
public interface LyDiseaseTagDao extends BaseMapper<LyDiseaseTag> {

    /**
     * 查询诊断数据
     *
     * @param startDate
     * @param endDate
     * @return
     */
    List<LyDiseaseTag> queryDiseaseByBetweenDate(@Param("startDate") String startDate, @Param("endDate") String endDate);

    /**
     * top10疾病
     *
     * @param startDate
     * @param endDate
     * @return
     */
    List<LyDiseaseTag> queryTop10DiseaseByBetweenDate(@Param("startDate") String startDate, @Param("endDate") String endDate);

    /**
     * 根据日期分组查询指定疾病数量
     *
     * @param req
     * @return
     */
    List<LyDiseaseTag> queryTargetDiseaseByBetweenDate(DiseaseReq req);

    /**
     * 根据疾病，日期查询
     *
     * @param disease 疾病
     * @param day     日期
     * @return
     */
    List<LyDiseaseTag> queryByDiseaseAndDay(@Param("disease") String disease, @Param("day") String day);

    Integer queryCount(@Param("startDate") String startDate, @Param("endDate") String endDate);
}